#include<iostream>
using namespace std;
int main()
{
    char data[100];
    char *a=data;
	int i,j,base;
    gets(data);
	for(i=0;a[i]!='\0';i++)
    {
        if(a[i]<91&&a[i]>64)
        {
            base='a';
            a[i]+=32;
        }
        else
        {
            base='A';
            a[i]-=32;
        }
<<<<<<< HEAD
        a[i]=(a[i]+3-base)%26+base;
=======
        a[i]=(a[i]-3+26-base)%26+base;
>>>>>>> 3909cf65189aaba5916d25e1c1d7784eb0e78f0d
    }
    i--;
    char temp;
    for(j=0;j<i;j++,i--)
    {
        temp=a[i];
        a[i]=a[j];
        a[j]=temp;
    }
	puts(data);
    return 0;
}
